import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path:"/",
      redirect:"loginPage"
    },
    {
      path:'/loginPage',
      name:'LoginPage',
      component:() => import("@/components/LoginPage"),
    },
    {
      path:'/registerPage',
      name:'RegisterPage',
      component:() => import("@/components/RegisterPage"),
    },
    {
      path:'/indexPage',
      name:'IndexPage',
      component:() => import("@/components/IndexPage"),
    },
    {
      path:'/articlePage',
      name:'ArticlePage',
      component:() => import("@/components/ArticlePage"),
      props: true
    },
    {
      path:'/searchPage',
      name:'SearchPage',
      component:() => import("@/components/SearchPage"),
    },
    {
      path:'/test',
      name:'test',
      component:() => import("@/components/test"),
    },
    
  ]
})
